package com.java.jvm.bytecode;

import com.sun.tools.attach
        .AgentInitializationException;
import com.sun.tools.attach.AgentLoadException;
import com.sun.tools.attach.AttachNotSupportedException;
import com.sun.tools.attach.VirtualMachine;

import java.io.IOException;

public class AgentInstrumentTests {
    public static void main(String[] args) throws IOException, AttachNotSupportedException, AgentLoadException, AgentInitializationException {
        VirtualMachine vm =
                VirtualMachine.attach("13004");//进程id
        vm.loadAgent("E:/TCGBIV/DEVCODES/jht2207/01-java/target/01-java-1.0-SNAPSHOT.jar");
    }
}
